DicomObjects.NET.V8
DicomObjects Namespace / DicomImage3D Class / SetTransferFunction Method / SetTransferFunction(Single,Single,Color[]) Method
The pixel value to be mapped to the first element of the Colours array
The pixel value to be mapped to the last element of the Colours array
An array of Color values



In This Topic
    SetTransferFunction(Single,Single,Color[]) Method
    In This Topic
    Set the transfer function (Colour Map) for use in Volume Rendering
    Syntax
    'Declaration
     
    Public Overloads Sub SetTransferFunction( _
       ByVal Min As Single, _
       ByVal Max As Single, _
       ByVal Colours() As Color _
    ) 
    'Usage
     
    Dim instance As DicomImage3D
    Dim Min As Single
    Dim Max As Single
    Dim Colours() As Color
     
    instance.SetTransferFunction(Min, Max, Colours)
    public void SetTransferFunction( 
       float Min,
       float Max,
       Color[] Colours
    )
    public:
    void SetTransferFunction( 
       float Min,
       float Max,
       array<Color>^ Colours
    ) 

    Parameters

    Min
    The pixel value to be mapped to the first element of the Colours array
    Max
    The pixel value to be mapped to the last element of the Colours array
    Colours
    An array of Color values
    Remarks

    The alpha values are central to Volume rendering, and it is important that "transparent" pixel ranges should be to colours with an alpha value < 1.

    Pixel values less than the Min value are mapped to the first colour in the array and those greater than the Max value are mapped to the last value.

    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also